﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

class DBPictureBox : PictureBox
{
    public DBPictureBox()
    {
        this.DoubleBuffered = true;

        this.SetStyle(ControlStyles.DoubleBuffer |
            ControlStyles.UserPaint |
            ControlStyles.AllPaintingInWmPaint,
                true);

        this.UpdateStyles();
    }
}